package com.ml.mall.bean.req.banner;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author :pl
 * @version :1.0
 * @description :实现修改banner图请求类
 * @date :2021/5/24
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "banner图修改Model")
public class SysBannerEditDto {
    @ApiModelProperty(value = "banner主键Id")
    @NotNull(message = "主键Id不能为空")
    private Long id;

    @ApiModelProperty(value = "图片字符链接")
    @NotBlank(message = "图片链接不能为空")
    private String picUrl;

    @ApiModelProperty(value = "重定向链接字符串")
    @NotBlank(message = "重定向链接不能为空")
    private String linkUrl;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序序号不能为空")
    private Integer indexNo;

    @ApiModelProperty(value = "图片标题")
    @NotBlank(message = "标题不能为空")
    private String title;
}
